
stations:

set dataTime(time: string){
    this.#dataTime = time;
    this.init()
}

get dataTime():any{
    return this.#dataSource;
}

function init() {
    if (!this.#layer) {

    } else {
        this.#layer.dataSource = this.#dataSource
    };

    if (!this.#layer) {

    } else {
        // map.getSource('source-id').setTiles([this.#dataSource]);
        this.#layer.dataSource = this.#dataSource
    };
   
}



stations:

#layer

set dataSource(source: any){
    this.#dataSource = source;
    this.init()
}

get dataSource():any{
    return this.#dataSource;
}

function updated() {
    if (!this.#layer) {

    } else {
        geojsonSource.setData(this.#dataSource)
    
    };

    if (!this.#layer) {

    } else {
        map.getSource('source-id').setTiles([this.#dataSource]);
    };
   
}
